using AIVision.MaoKe01.Application.Event;
using Avalonia.Controls;
using Prism.Events;

namespace AIVision.MaoKe01.Views
{
    public partial class WinMain : Window
    {
        public WinMain(IEventAggregator eventAggregator)
        {
            InitializeComponent();
            eventAggregator.GetEvent<WindowsCloseEvent>().Subscribe(CloseWindows, ThreadOption.UIThread);
        }
        private void CloseWindows()
        {
            this.Close();
        }
    }
}